<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Document</title>
</head>
<body>
    
    <script type="text/javascript">
        let a = 'name'
        let obj = {}
        obj[a] = "Tom"
        console.log(obj)
    </script>
</body>
</html>